package com.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mapper.auto.StuSchemeMapper;
import com.mapper.auto.StuSchemeV2Mapper;
import com.model.auto.StuScheme;
import com.model.auto.StuSchemeV2;
import com.service.IStuSchemeService;
import com.service.IStuSchemeV2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Service
public class StuSchemeV2ServiceImpl extends ServiceImpl<StuSchemeV2Mapper, StuSchemeV2> implements IStuSchemeV2Service {
    @Autowired
    private StuSchemeV2Mapper stuSchemeMapper;

    @Override
    public List<StuSchemeV2> getProgrammes(String stuId) {
        return stuSchemeMapper.getProgrammes(stuId);
    }

    @Override
    public Integer queryGroupByParam(StuSchemeV2 scheme) {
        return stuSchemeMapper.queryGroupByParam(scheme);
    }

    @Override
    public List<StuSchemeV2> getStuScheme(String stuId, Integer programmeId, String batch, Integer majorType) {
        return stuSchemeMapper.getStuScheme(stuId, programmeId, batch, majorType);
    }
}
